package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.domain.BlackList;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author LiKe
 * @date 2022/1/22 10:26
 */
public interface BlackListMapper extends BaseMapper<BlackList> {

    @Select("SELECT COUNT(*) FROM tb_black_list WHERE user_id = #{userId};")
    int findBlackCount(Long userId);
}
